// pages/worksheet/worksheet.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
   openid:"",
   arr:[]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var openid=wx.getStorageSync('openid')
    this.setData({
      openid:openid
    })
    this.getSheetList()
  },

  worksheet: function (e) {
    var id=e.currentTarget.dataset.id
    wx.navigateTo({
      url: '/pages/content/content?id='+id,
    })
  },
  getSheetList:function(){
    var _this=this
   var url="https://www.d-shang.com/index.php?fixed/getformbyopenid/?openid="+this.data.openid
   wx.request({
     url:url,
     success:function(res){
       _this.setData({
         arr:res.data.data.data
       })      
       console.log(res.data.data.data)
     }
   })
  }
})